﻿using System;

using pri.smilly.QuickStart.Aop;

namespace pri.smilly.QuickStart.Ioc {
    public class PolicyWrapper {
        public int Order { set; get; }
        public string Expression { private set; get; }
        public ExpressionMatchRule MatchRule { private set; get; }
        public Type Advice { private set; get; }

        public PolicyWrapper(string expression, Type advice, int order = 0) {
            Expression = expression;
            Order = order;
            Advice = advice;
            MatchRule = new ExpressionMatchRule(expression);
        }
    }
}
